package com.skytech.tax.customsdatawarehouse.singlewindow.customsagententrusted.resource;

import com.skytech.tax.customsdatawarehouse.singlewindow.customsagententrusted.domain.service.EntrustedAgreementService;
import com.skytech.tax.customsdatawarehouse.singlewindow.customsagententrusted.domain.service.EntrustedRelationService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Lianhong
 * @since 2022/6/15
 */
@RestController
@RequestMapping("/single-window/customs-agent-entrusted/entrusted-relation")
public class EntrustedRelationResource {


    @Resource
    private EntrustedRelationService entrustedRelationService;

    /**
     * 保存税费单信息
     *
     * @param entrustedRelation 委托关系
     */
    @PostMapping
    public void saveEntrustedRelation(@RequestBody String entrustedRelation) {
        entrustedRelationService.saveEntrustedRelation(entrustedRelation);
    }


}
